﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml.Linq;

namespace CMTVision.WidgetWeb.Modules
{
    public partial class WidgetList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }


        protected void WidgetRepeater_Load(object sender, EventArgs e)
        {
            Repeater widgetRepeater = (Repeater)sender;
            using (Model.CMTWidgetsEntities entities = Common.EntitiesManager.LoadWidgetEntity())
            {
                widgetRepeater.DataSource = (from wt in entities.WidgetTypes select wt).ToList();
                widgetRepeater.DataBind();
            }
        }
    }
}